<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center custr_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub custr_fd0_0'>
          <view class='flex flex-wrap align-center custr_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  custr_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='custr_fd0_0_c1_c0'>客户详情</text>
          </view>
          <view class='flex flex-wrap align-center justify-end custr_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout custr_flex_1">
        <view class='flex flex-wrap align-center justify-between custr_fd1_0'>
          <image class='custr_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"151.png"'></image>
          <view class='flex flex-direction align-stretch flex-sub custr_fd1_0_c1'>
            <view class='flex flex-wrap align-center custr_fd1_0_c1'>
              <text>{{info.customer_name}}</text>
              <!-- <image class='custr_fd1_0_c1_c0_c1' mode="aspectFit" :src='STATIC_URL+"152.png"'></image> -->
            </view>
            <view class='flex flex-wrap align-center custr_fd1_0_c1_c1'>
              <text>{{info.customer_phone}}</text>
            </view>
          </view>
          <button class='custr_fd1_0_c2' @tap.stop="goToDetail" data-type="navigateTo"
            :data-url="`/pages/grzx/newCustomer/newCustomer?aid=${aid}`">编辑</button>
        </view>
        <view class='flex flex-wrap align-end custr_fd1_1'>
          <text class='custr_fd1_1_c0'>{{info.customer_type_name}}日期</text>
          <text>{{info.date_time}}</text>
        </view>
        <view class='flex flex-wrap align-end custr_fd1_1'>
          <text class='custr_fd1_1_c0'>来源</text>
          <text>{{info.source_name}}</text>
        </view>
        <view class='flex flex-wrap align-end custr_fd1_1'>
          <text class='custr_fd1_1_c0'>婚礼酒店</text>
          <text>{{info.wedding_hotel || '暂未填写'}}</text>
        </view>
        <view class='flex flex-wrap align-start custr_fd1_1'>
          <view class='custr_fd1_1_c0'>客户分析</view>
          <view class="" style="width: 450rpx;">{{info.customer_analysis || '暂未填写'}}</view>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        "dataList": [],
        "cateId": "",
        "images": [],
        info: ""
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      let {
        aid
      } = options
      if (aid !== undefined) this.aid = aid
      this.getDetail()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      goToDetail() {
        console.log('ppp', this.aid)
        uni.navigateTo({
          url: `/pages/grzx/newCustomer/newCustomer?aid=${this.aid}`
        })
      },
      getDetail() {
        this.$api.post(global.apiUrls.post666ceed1b0826, {
          aid: this.aid
        }).then(res => {
          if (res.data.code == 1) {
            this.info = res.data.data
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor0);
    background-size: 100% auto;
  }

  .custr_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .custr_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .custr_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .custr_fd0_0_c0 {
    width: 120rpx;
  }

  .custr_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .custr_flex_1 {
    background: rgba(255, 255, 255, 1);
    margin: 26rpx 24rpx 0rpx 24rpx;
    padding: 24rpx;
    border-radius: 26rpx;
    background-size: 100% auto;
  }

  .custr_fd1_1_c0 {
    color: rgba(170, 170, 170, 1);
    width: 150rpx;
  }

  .custr_fd1_1 {
    padding: 24rpx 0rpx 0rpx 0rpx;
    font-size: 28rpx;
  }

  .custr_fd1_0_c2 {
    background: #F9E4C3;
    border-radius: 8rpx 8rpx 8rpx 8rpx;
    width: 136rpx;
    line-height: 60rpx;
    font-size: 24rpx;
    color: var(--benbenFontColor0);
    height: 60rpx;
  }

  .custr_fd1_0_c1_c1 {
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .custr_fd1_0_c1_c0_c1 {
    width: 115rpx;
    height: 34rpx;
    margin: 0rpx 0rpx 0rpx 16rpx;
  }

  .custr_fd1_0_c1 {
    font-size: 32rpx;
    font-weight: 600;
  }

  .custr_fd1_0_c0 {
    width: 62rpx;
    height: 67rpx;
    margin: 0rpx 24rpx 0rpx 0rpx;
  }

  .custr_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 0rpx 0rpx 24rpx 0rpx;
  }
</style>
